package com.google.code.drift.dialog;

import com.google.code.drift.R;

import android.app.AlertDialog;
import android.content.Context;
import android.graphics.Color;
import android.widget.TextView;

public class AboutDialog extends AlertDialog {

	public AboutDialog(Context context) {
		super(context);
		setIcon(R.drawable.ic_about);
		setTitle("飘 v" + context.getString(R.string.version));
		setButton(context.getText(R.string.ok), (OnClickListener)null);
		TextView aboutContent = new TextView(context);
		aboutContent.setText(R.string.menu_about_content);
		aboutContent.setTextColor(Color.WHITE);
		setView(aboutContent);
	}
}
